package com.community.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.community.dao.IBaseDao;
import com.community.entity.Specialist;
import com.community.service.ISpecialistService;

@Service
public class SpecialistServiceImpl implements ISpecialistService{
	
	@Autowired
	private IBaseDao<Specialist> sdao;

	@Override
	public List<Specialist> getSpecialistList() {
		// TODO Auto-generated method stub
		return sdao.find("from Specialist");
	}

	@Override
	public Specialist getSpecialistById(Long id) {
		// TODO Auto-generated method stub
		return sdao.get(Specialist.class, id);
	}

}
